#include <iostream>
using namespace std;

int main(int argc, char const *argv[])
{
    int number = 0;
    int a = 0;
    cout << "用户输入整数" <<endl;
    cin >> number;
    int new_number = 0;
    while(1)
    {
        new_number = (number % 10);
        number = number / 10;
        cout << new_number ;

        if(number < 10)
        {
            cout << number ;
            break;
        }
       
    }                                         
    return 0;
}
